﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace Prism.WebBuilder.Lib.IO
{
	public static class PathHelper
	{
		public static IEnumerable<string> FindFiles(string path)
		{
			if (path.Contains("*"))
				return Directory.GetFiles(Path.GetDirectoryName(path),
					Path.GetFileName(path), SearchOption.AllDirectories);
			else
				return new string[] { path };
		}
	}
}
